#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int strend(char *s, char *t)
{
    int step = strlen(s) - strlen(t);
    char *pos = s + step;
    while(*pos++ == *t++)
    {
        if(*pos == '\0')
            return 1;
    }
    return 0;
}
int main()
{
    char *s = "sklfjl";
    char *t = "lj";
    printf("%d\n", strend(s,t));
    return 0;
}
